//
//  testDelegate.cpp
//  Athena
//
//  Created by Pang Jun on 4/2/13.
//  Copyright (c) 2013 Pang Jun. All rights reserved.
//

#include "testDelegate.h"
#include <iostream>


TestDelegate::TestDelegate(Delegate &myDelegate)
:mDelegate(myDelegate)
{}

TestDelegate::TestDelegate(const TestDelegate& ins)
:mDelegate(ins.mDelegate)
{
}

TestDelegate::~TestDelegate()
{
}

void TestDelegate::testDelegate()
{
    std::cout<<"TestDelegate!"<<std::endl;
    std::cout<<"CallOnDelegate!"<<std::endl;
    mDelegate.OnTestDelegate();
}

TestDelegate::Delegate::Delegate()
{}

TestDelegate::Delegate::Delegate(const Delegate& ins)
{}

TestDelegate::Delegate::~Delegate()
{}